package com.ts;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class DialogActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dialog);
		Button sureButton = (Button) findViewById(R.id.surebutton);
		Button notSureButton = (Button) findViewById(R.id.notsurebutton);
		sureButton.setOnClickListener(new SureButtonClickListener());
		notSureButton.setOnClickListener(new SureButtonClickListener());
	}
	
	private class SureButtonClickListener implements OnClickListener{
		@Override
		public void onClick(View v) {
			finish();
		}
	}
}
